package com.example.admin.controller.web.system;

import java.util.Arrays;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.common.system.entity.LoginUser;
import com.example.common.util.security.SecurityUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.web.bind.annotation.*;

import com.example.common.system.entity.UserEntity;
import com.example.common.system.service.UserService;
import com.example.common.util.PageUtils;
import com.example.common.core.response.AjaxResult;


/**
 * 系统用户表
 *
 * @author chen
 * @email 17635014889@163.com
 * @date 2022-09-19 17:34:36
 */
@RestController
@RequestMapping("/system/user")
public class UserController {
    @Autowired
    private UserService userService;

    @GetMapping("/info")
    public AjaxResult info(){
        LoginUser loginUser = SecurityUtil.getLoginUser();
        return AjaxResult.success(loginUser);
    }
}
